﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using System.Xml;

namespace Sound
{
    public class SoundManager
    {
        public const string PATH_SOUNDS= "Sounds/";
        public List<SoundEffect> Sounds;
        public bool IsOn = true;

        /// <summary>
        /// 
        /// </summary>
        public SoundManager(ContentManager content)
        {
            Sounds = new List<SoundEffect>();
            Sounds.Add(content.Load<SoundEffect>(PATH_SOUNDS + "Crack Sound"));

        }

        /// <summary>
        /// 
        /// </summary>
        public void playSound(string soundName)
        {
            if (!this.IsOn)
            {
                return;
            }

            switch (soundName)
            {
                case "Fired-Skill":
                    this.Sounds[0].Play();
                    break;
            }
        }

    }
}
